package com.supercube.wechat.service.impl;

import com.supercube.wechat.dao.CustomPageDao;
import com.supercube.wechat.domain.CustomPageDO;
import com.supercube.wechat.service.CustomPageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CustomPageServiceImpl implements CustomPageService {
	@Autowired
	private CustomPageDao customPageDao;
	
	@Override
	public CustomPageDO get(Integer id){
		return customPageDao.get(id);
	}
	
	@Override
	public List<CustomPageDO> list(Map<String, Object> map){
		return customPageDao.list(map);
	}
	
	@Override
	public List<Map<String, Object>> findDataList(Map<String, Object> map){
		List<Map<String, Object>> list = customPageDao.findDataList(map);
		return list;
	}
	
	@Override
	public int save(CustomPageDO customPage){
		return customPageDao.save(customPage);
	}
	
	@Override
	public int update(CustomPageDO customPage){
		return customPageDao.update(customPage);
	}
	
	@Override
	public int remove(Integer id){
		return customPageDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return customPageDao.batchRemove(ids);
	}
	
}
